<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../included/commons.jsp"%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>
</head>
<body>
<ul>
<c:forEach items="${users}" var="user">
	<li onmouseover="this.style.background='fcc'"
		onmouseout="this.style.background='f'">
	<input type="radio" name="suser" value="${user.name}" id="${user.name}" />
	<label for="${user.name}"
		onClick="getuser('${user.name}','${user.localName}')">
	${user.localName}</label>
	</li>
</c:forEach>
</ul>
<input type="text" id="selecteduser" name="selecteduser" />
<input type="button" value="确定" onclick="setUser()" />
<script language="javascript">   
    function setUser(){     
        window.close();
	}
	
	function getuser(username,localname){	
	  var step='owner[${stepId}]';
	  var multi = ${multiowner};
	  if(multi){
         opener.document.getElementById(step).value=username;
      }else{
         var form =  opener.document.getElementById('dform');
         form.elements['owner'].value=username;
      }
      var guser = document.getElementById("selecteduser");	   
	  guser.value = localname;	  
	  
	}
</script>
</body>
</html>
